package com.TeamJigsaw.DanteTrail.Models;

/**
 * Represents an item you can buy in the store
 * @author David Chi
 *
 */
public class StoreItem {
	protected int itemID;
	protected String itemName;
	protected int itemCost;
	protected int itemAmount;
	protected int itemWeight;
	
	/**
	 * Creates and initializes the cost, item id, and name of a store item
	 * @param itemID The ID of the store item
	 * @param itemName The name of the store item
	 * @param itemCost The cost of the item
	 */
	public StoreItem(int itemID, String itemName, int itemCost, 
			int itemAmount, int itemWeight) {
		this.itemID = itemID;
		this.itemName = itemName;
		this.itemCost = itemCost;
		this.itemAmount = itemAmount;
		this.itemWeight = itemWeight;
	}

	/**
	 * Gets and returns the item ID
	 * @return The item ID
	 */
	public int getItemID() {
		return itemID;
	}

	/**
	 * Gets and returns the item name
	 * @return The item name
	 */
	public String getItemName() {
		return itemName;
	}

	/**
	 * Gets and returns the item cost
	 * @return The item cost
	 */
	public int getItemCost() {
		return itemCost;
	}
	
	/**
	 * Gets and returns the amount of the item in each purchase
	 * @return The amount of the item in each purchase
	 */
	public int getItemAmount() {
		return itemAmount;
	}
	
	/**
	 * Gets and returns the item's weight
	 * @return The item's weight
	 */
	public int getItemWeight() {
		return itemWeight;
	}
	
	/**
	 * Returns a string representation of the StoreItem
	 * @return A string representation of the Storeitem
	 */
	 @Override
	public String toString() {
		 return("This is a StoreItem. It's name is " + itemName);
	 }
}
